﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Threading;
using System.Collections;
using System.Xml;
using COM.PreAlarm.BLL;
using COM.PreAlarm.Model;

public partial class Default2 : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {

        Equip_Installed ei = new Equip_Installed();
        Equip_InstalledInfo eif = new Equip_InstalledInfo();
        List<Equip_InstalledInfo> list = ei._GetList<Equip_InstalledInfo>();

        //string orderXML = "<?xml version=" + '"' + "1.0" + '"' + "?>" + "<fanli_data>"
        //               + "<order order_time=\"2011-06-09 09:10:01\" order_no=\"10005276\" shop_no=\"99read\" shop_key=\"123456\" u_id=\"11219\" username=\"11219@51fanli\" is_pay=\"1\" pay_type=\"1\" total_qty=\"23\" total_price=\"23.4\" order_status=\"1\" deli_name=\"返利快递\" deli_cd=\"FL001\" tracking_code=\"fanli_12_23\">"
        //                   + "<products_all>"
        //                           + "<product>"
        //                                   + "<product_id> p032111201 </product_id>"
        //                                   + "<product_url>http://lady.moonbasa.com/p-032111201.html</product_url>"
        //                                   + "<product_qty> 10 </product_qty>"
        //                                   + "<product_price> 49 </product_price>"
        //                                   + "<product_comm> 0 </product_comm>"
        //                                   + "<comm_no></comm_no>"
        //                           + "</product>"
        //                    + "</products_all>"
        //                    + "<coupons_all>"
        //                           + "<coupon>"
        //                           + "<coupon_no>YH001</coupon_no>"
        //                           + "<coupon_qty>1</coupon_qty>"
        //                           + "<coupon_price>-130</coupon_price>"
        //                           + "<comm_no></comm_no>"
        //                           + "</coupon>"
        //                   + "</coupons_all>"
        //               + "</order>"
        //           + "</fanli_data>";
        //string url = " http://data2.51fanli.com/index.php/DataHandle";
        ////   string result = ZRequest.GetHtml(url, "utf-8");
        //Hashtable data = new Hashtable();
        //data.Add("content", orderXML);
        //string request = ZWSCaller.QueryPostWS(url, "handlePostData", data);
        //Response.Write(request.ToString());
        //for (int i = 0; i < 100000; i++)
        //{
        //    ThreadStart st = new ThreadStart(my);
        //    Thread th = new Thread(st);
        //    th.Start();
        //}
    }

    void my()
    {
        ZRequest.GetHtml("http://hzs2.cnzz.com/stat.htm?id=3314285&r=http%3A//www.lvshou.com/&lg=undefined&ntime=0.74945700%201316153070&repeatip=21&rtime=10&cnzz_eid=52206429-1312962647-&showp=1440x900&st=55&sin=http%3A//new.cnzz.com/v1/main.php%3Fs%3Dheatmaplook%26siteid%3D3314285%26id%3D4987&res=0", "utf-8");
    }
}